import service from '@/utils/request'

// @Tags HomeTab
// @Summary 创建HomeTab
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.HomeTab true "创建HomeTab"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /tab/createHomeTab [post]
export const createHomeTab = (data) => {
  return service({
    url: '/tab/createHomeTab',
    method: 'post',
    data
  })
}

// @Tags HomeTab
// @Summary 删除HomeTab
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.HomeTab true "删除HomeTab"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /tab/deleteHomeTab [delete]
export const deleteHomeTab = (data) => {
  return service({
    url: '/tab/deleteHomeTab',
    method: 'delete',
    data
  })
}

// @Tags HomeTab
// @Summary 删除HomeTab
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除HomeTab"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /tab/deleteHomeTab [delete]
export const deleteHomeTabByIds = (data) => {
  return service({
    url: '/tab/deleteHomeTabByIds',
    method: 'delete',
    data
  })
}

// @Tags HomeTab
// @Summary 更新HomeTab
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.HomeTab true "更新HomeTab"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /tab/updateHomeTab [put]
export const updateHomeTab = (data) => {
  return service({
    url: '/tab/updateHomeTab',
    method: 'put',
    data
  })
}

// @Tags HomeTab
// @Summary 用id查询HomeTab
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.HomeTab true "用id查询HomeTab"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /tab/findHomeTab [get]
export const findHomeTab = (params) => {
  return service({
    url: '/tab/findHomeTab',
    method: 'get',
    params
  })
}

// @Tags HomeTab
// @Summary 分页获取HomeTab列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取HomeTab列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /tab/getHomeTabList [get]
export const getHomeTabList = (params) => {
  return service({
    url: '/tab/getHomeTabList',
    method: 'get',
    params
  })
}